﻿using Basic.HrRemoteModel.Dept;
using WeDonekRpc.Client.Attr;

namespace Basic.FlowExtendService.lmpl
{
    [ClassLifetimeAttr(ClassLifetimeType.SingleInstance)]
    internal class UnitDeptService : IUnitDeptService
    {
        public string[] GetName ( long[] ids )
        {
            return new GetDeptNameList
            {
                Id = ids
            }.Send();
        }
        public string GetName ( long id )
        {
            return new GetDeptName
            {
                Id = id
            }.Send();
        }

        public Dictionary<long, string> GetNames ( long[] ids )
        {
            return new GetUnitDeptNames
            {
                Ids = ids
            }.Send();
        }

    }
}
